package com.zp.business.entity.patPrepayment.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 患者住院预交金业务对象
 *
 * @author zhang peng
 * @ date 2024-07-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PatPrepaymentBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String prepaymentId;

    /**
     * 患者主信息id
     */
    private String patientId;

    /**
     * 住院id
     */
    private String visitId;

    /**
     * 收费号
     */
    private String feesNo;

    /**
     * 结账号
     */
    private String acctNo;

    /**
     * 预交金金额
     */
    @NotNull(message = "预交金金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal amountOfMoney;

    /**
     * 支付方式
     */
    private String payWay;

    /**
     * 支付卡号
     */
    private String cardNo;

    /**
     * 金额类型
     */
    @NotBlank(message = "金额类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 退费号
     */
    private String refundedId;

    /**
     * 机构id
     */
    private String orgId;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 建议预交金
     */
    private BigDecimal paymentAdvice;

    /**
     * 退费人
     */
    private String refundedUser;

    /**
     * 退费时间
     */
    private Date refundedTime;



}
